C # hosting and unmanaged resources,
Reprinted from: http://blog.jobbole.com/89064/
Managed resources refer to. NET resources that can be automatically recycled, mainly the memory resources allocated on the managed stack. The collection of managed resources does not require manual intervention. Some. NET runtime Libraries call the Garbage Collector to recycle the resources.
Understanding of managed and unmanaged resources, hosting of managed resources
In the. net programming environment, system resources are divided into managed resources and unmanaged resources.
For the collection of managed resources, manual intervention is not required, and you cannot intervene in the collection. All you can do is to understand how. net CLR perfo
existing code. Microsoft also knows this problem and provides mechanisms through CLR to allow both hosted and unmanaged code to be included in the application. Specifically, CLR supports three types of interoperability scenarios.L The managed code can call an unmanaged function hosting code in the DLL. A mechanism called P/invoke (platform invoke) can be used to
Recently, it is often seen that some people ask about hosting an unmanaged instance.DLLCall problems. Calling a dynamic library is actually very simple. ManyCodeAll are implementedDLL. I mainly talk about dynamic library loading.
It is easy to implement dynamic loading for hosted dynamic libraries.
/Files/dwwwing/dlldemo.rar
Code = Assembly. LoadFile (filepath ); // Here is the path of the dynamic
ManagedCode(Managed code ): Code executed by the Common Language Runtime Library environment (rather than directly by the operating system. Managed code application
Program You can obtain the Common Language Runtime library service, such as automatic garbage collection, runtime database type check, and security support. These services help provide unified managed code application behavior independent of platform and language.
Unmanaged code-
Recently I used ASP. NET to create an MDB file. After I found that the MDB file was created using ADOX. CATALOG, a temporary LDB log file will be generated;The MDB file with LDB is in the "open" status, and it is difficult to perform operations such as "delete.After searching for problems and summarizing methods on the Internet, we found that we still need to implement the IDISPOSABLE interface on the class to implement temporary hosting.
1. First, we
, Baidu and other media. a server can be divided into multiple VPS (limited by the server's hardware configuration and bandwidth) or multiple virtual hosts (so that multiple sites can be placed).
Web site VPS(Virtual Private server) technology, the division of a server into multiple virtual exclusive server services. Each VPS can be assigned an independent pub
server and causes it to become very slow or fail to respond to requests entirely. (one server can only handle so much, you see)
64-bit
Had 8-bit 8088 CPUs, barely fit to work as a calculator. Then there is the 16-bit 286, and finally the 32-bit 386 which, with a few enhancements here and there, have stuck around For the past years. The only real problem with 32-bit is that it meant that a computer could has only 4GiB of RAM, which is good enough unt Il around when we decided this 640
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.